import request from '@/utils/request'

// 查询会员积分记录列表
export function listPointsRecord(query) {
  return request({
    url: '/system/points/record/list',
    method: 'post',
    data: query
  })
}

// 查询会员积分记录详细
export function getPointsRecord(id) {
  return request({
    url: '/system/points/record/' + id,
    method: 'get'
  })
}

// 新增会员积分记录
export function addPointsRecord(data) {
  return request({
    url: '/system/points/record',
    method: 'post',
    data: data
  })
}

// 修改会员积分记录
export function updatePointsRecord(data) {
  return request({
    url: '/system/points/record',
    method: 'put',
    data: data
  })
}

// 删除会员积分记录
export function delPointsRecord(id) {
  return request({
    url: '/system/points/record/' + id,
    method: 'delete'
  })
}
